//
//  FSWPublicParameterTool.m
//  LCCarS
//
//  Created by 伏圣文 on 2021/1/8.
//  Copyright © 2021 吴健. All rights reserved.
//

#import "FSWPublicParameterTool.h"

@implementation FSWPublicParameterTool
+(NSMutableDictionary *)fswPublicParameterTool:(NSDictionary *)dict{
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    NSString *uid = [fUserDefaults objectForKey:USER_ID]; 
    NSString *openkey = @"513fb82e1e54251bb2c0bf95786d136a";
    param[@"uid"] = uid;
    param[@"openkey"] = openkey;
    
    if (dict == nil) {
         return param;
    }else{
         [param addEntriesFromDictionary:dict];
         return param;
    }
   
   
}

+(NSMutableDictionary *)fswZcPublicParameterTool:(NSDictionary *)dict{
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    NSString *uid = [fUserDefaults objectForKey:USER_ID];
    NSString *openkey = @"513fb82e1e54251bb2c0bf95786d136a";
    param[@"id"] = uid;
    param[@"openkey"] = openkey;
    
    if (dict == nil) {
         return param;
    }else{
         [param addEntriesFromDictionary:dict];
         return param;
    }
   
   
}

+(NSMutableDictionary *)fswNotOpenkeyPublicParameterTool:(NSDictionary *)dict{
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    NSString *uid = [fUserDefaults objectForKey:USER_ID];
//    NSString *openkey = @"513fb82e1e54251bb2c0bf95786d136a";
    param[@"uid"] = uid;
//    param[@"uid"] = @"1";
//    param[@"openkey"] = openkey;
    
    if (dict == nil) {
         return param;
    }else{
         [param addEntriesFromDictionary:dict];
         return param;
    }
   
   
}
@end
